


import java.awt.*;
import javax.swing.*;

/**
 * Template for views consiting of a top, content (middle) and bottom section.
 */
public class DialogTemplatePanel extends ObservingJPanel {
    
    protected JPanel top;
    protected JPanel content;
    
    protected CalendarController controller;

	public DialogTemplatePanel(CalendarController controller, String title, JPanel content) {
        this.setLayout(new BorderLayout());
        this.controller = controller;
        
		// Create panels
        top = new TopFilterPanel(controller, title);

		this.add(top, BorderLayout.PAGE_START);
		this.add(content, BorderLayout.CENTER);
	}

    public void setContent(JPanel content) {
        this.content = content;
    }

    public void setTop(JPanel top) {
        this.top = top;
    }

    @Override
    public void update() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}

